package com.concurrent.chapter7.concurrent01;

import java.util.concurrent.Callable;

public class MyCallableB1 implements Callable<String> {

	@Override
	public String call() throws Exception {
		System.out.println("MyCallableB1.call() begin " + System.currentTimeMillis());
		for (int i = 0; i < 500; i++) {
			Math.random();
			Math.random();
			Math.random();
			System.out.println("MyCallableB1.call() " + i);
		}
		System.out.println("MyCallableB1.call() end " + System.currentTimeMillis());
		return "MyCallableB1_return";
	}
}
